package edu.whut.mall.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import edu.whut.mall.admin.enums.AdminType;
import lombok.Data;

import java.util.Date;

/**
 * Author: smq
 * Unit: D9lab
 * Date: 2021-06-14 15.08
 */
@Data
public class Role {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    private String name;
    private Date createTime;
    private Date updateTime;
    private int isDeleted;
    private String description;
    private String url;
    private String type;

    public Role() {
    }

    public Role(String name, String description, Date createTime, Date updateTime, int isDeleted, String type) {
        this.name = name;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
        this.description = description;
        this.type = type;

    }
    public Role(String name, String description, Date createTime, Date updateTime, int isDeleted, String url, String type) {
        this.name = name;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
        this.description = description;
        this.url = url;
        this.type = type;

    }
    
}
